package com.itheima.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
/**
 * 包名:com.itheima.controller
 * @author Leevi
 * 日期2020-08-15  10:53
 */
@Controller
@RequestMapping("/hello")
public class HelloController {
    @RequestMapping("/sayHello")
    public String sayHello(){
        System.out.println("sayHello 方法执行了....");
        return "success";
    }

    @RequestMapping("/getName")
    public String getName(){
        System.out.println("getName执行了...");
        return "success";
    }

    @RequestMapping("/sayHaha")
    public String sayHaha(){
        System.out.println("hahahahha....");
        return "success";
    }
}
